package com.atguigu.encapsolation.two;

import com.atguigu.encapsolation.one.Father;

public class DifferentPackageTest {
    public static void main(String[] args) {
        Father f = new Father();
//        System.out.println("f.a = " + f.a);//错误
//        System.out.println("f.b = " + f.b);//错误
//        System.out.println("f.c = " + f.c);//错误
        System.out.println("f.d = " + f.d);
        //跨包非子类，只有public可见，其他都不可见
    }
}
